﻿using System;
using System.Collections.Generic;
using System.Text;
using WCSY.DAL;
using System.Collections;
using System.Data;
using WCSY.MODEL;

namespace WCSY.BLL
{
    public class BaseInfo_Mng
    {
        //#region 客户信息

        ///// <summary>
        ///// 添加客户信息
        ///// </summary>
        ///// <param name="htCi">客户信息数据模型</param>
        ///// <returns></returns>
        //public int AddClientInfo(Hashtable htCi)
        //{
        //    return BaseInfo_Svc.AddClientInfo(htCi);
        //}
        ///// <summary>
        ///// 删除对应代码的客户信息
        ///// </summary>
        ///// <param name="ClientNo">客户代码</param>
        ///// <returns></returns>
        //public int DelClientInfoByNo(string ClientNo)
        //{
        //    return BaseInfo_Svc.DelClientInfoByNo(ClientNo);
        //}
        ///// <summary>
        ///// 修改对应代码的客户信息
        ///// </summary>
        ///// <param name="htCi">客户信息数据模型</param>
        ///// <returns></returns>
        //public int ModifyClientInfoByNo(Hashtable htCi)
        //{
        //    return BaseInfo_Svc.ModifyClientInfoByNo(htCi);
        //}
        ///// <summary>
        ///// 通过客户代码获取客户信息
        ///// </summary>
        ///// <param name="ClientNo">客户代码</param>
        ///// <returns></returns>
        //public Hashtable GetClientInfoByNo(string ClientNo)
        //{
        //    return BaseInfo_Svc.GetClientInfoByNo(ClientNo);
        //}
        ///// <summary>
        ///// 通过查询条件获取相关客户信息
        ///// </summary>
        ///// <param name="htCi">查询条件</param>
        ///// <returns></returns>
        //public DataTable GetClientInfoByCdt(Hashtable htCi)
        //{
        //    return BaseInfo_Svc.GetClientInfoByCdt(htCi);
        //}
        // /// <summary>
        ///// 获取最大客户代码
        ///// </summary>
        ///// <returns></returns>
        //public String GetMaxCNo()
        //{
        //    return BaseInfo_Svc.GetMaxCNo();
        //}

        //#endregion

        //#region 产品类型

        ///// <summary>
        ///// 添加产品类型
        ///// </summary>
        ///// <param name="htPt">产品类型数据模型</param>
        ///// <returns></returns>
        //public int AddProductType(Hashtable htPt)
        //{
        //    return BaseInfo_Svc.AddProductType(htPt);
        //}
        ///// <summary>
        ///// 删除对应代码的产品类型
        ///// </summary>
        ///// <param name="ProdTpNo">产品类型代码</param>
        ///// <returns></returns>
        //public int DelProductTypeByNo(string ProdTpNo)
        //{
        //    return BaseInfo_Svc.DelProductTypeByNo(ProdTpNo);
        //}
        ///// <summary>
        ///// 修改对应代码的产品类型信息
        ///// </summary>
        ///// <param name="htPt">产品类型数据模型</param>
        ///// <returns></returns>
        //public int ModifyProductTypeByNo(Hashtable htPt)
        //{
        //    return BaseInfo_Svc.ModifyProductTypeByNo(htPt);
        //}
        ///// <summary>
        ///// 获取对应代码的产品类型信息
        ///// </summary>
        ///// <param name="ProdTpNo">产品类型代码</param>
        ///// <returns></returns>
        //public Hashtable GetProductTypeByNo(string ProdTpNo)
        //{
        //    return BaseInfo_Svc.GetProductTypeByNo(ProdTpNo);
        //}
        ///// <summary>
        ///// 查询产品类型信息
        ///// </summary>
        ///// <param name="htPt">查询条件</param>
        ///// <returns></returns>
        //public DataTable GetProductTypeByCdt(Hashtable htPt)
        //{
        //    return BaseInfo_Svc.GetProductTypeByCdt(htPt);
        //}

        //#endregion

        //#region 产品型号

        ///// <summary>
        ///// 添加产品型号
        ///// </summary>
        ///// <param name="htPm">产品型号数据模型</param>
        ///// <returns></returns>
        //public int AddProductModel(Hashtable htPm)
        //{
        //    return BaseInfo_Svc.AddProductModel(htPm);
        //}
        ///// <summary>
        ///// 删除对应代码的产品型号
        ///// </summary>
        ///// <param name="ProdMdNo">产品型号代码</param>
        ///// <returns></returns>
        //public int DelProductModelByNo(string ProdMdNo)
        //{
        //    return BaseInfo_Svc.DelProductModelByNo(ProdMdNo);
        //}
        ///// <summary>
        ///// 修改对应代码的产品型号信息
        ///// </summary>
        ///// <param name="htPm">产品型号数据模型</param>
        ///// <returns></returns>
        //public int ModifyProductModelByNo(Hashtable htPm)
        //{
        //    return BaseInfo_Svc.ModifyProductModelByNo(htPm);
        //}
        ///// <summary>
        ///// 获取对应代码的产品型号信息
        ///// </summary>
        ///// <param name="ProdPmNo">产品型号代码</param>
        ///// <returns></returns>
        //public Hashtable GetProductModelByNo(string ProdPmNo)
        //{
        //    return BaseInfo_Svc.GetProductModelByNo(ProdPmNo);
        //}
        ///// <summary>
        ///// 查询产品型号信息
        ///// </summary>
        ///// <param name="htPm">查询条件</param>
        ///// <returns></returns>
        //public DataTable GetProductModelByCdt(Hashtable htPm)
        //{
        //    return BaseInfo_Svc.GetProductModelByCdt(htPm);
        //}

        //#endregion

        //#region 需求类别

        ///// <summary>
        ///// 添加需求类别
        ///// </summary>
        ///// <param name="htRt">需求类别数据模型</param>
        ///// <returns></returns>
        //public int AddRequireType(Hashtable htRt)
        //{
        //    return BaseInfo_Svc.AddRequireType(htRt);
        //}
        ///// <summary>
        ///// 删除对应代码的需求类别
        ///// </summary>
        ///// <param name="ReqTpNo">需求类别代码</param>
        ///// <returns></returns>
        //public int DelRequireTypeByNo(string ReqTpNo)
        //{
        //    return BaseInfo_Svc.DelRequireTypeByNo(ReqTpNo);
        //}
        ///// <summary>
        ///// 修改对应代码的需求类别信息
        ///// </summary>
        ///// <param name="htRt">需求类别数据模型</param>
        ///// <returns></returns>
        //public int ModifyRequireTypeByNo(Hashtable htRt)
        //{
        //    return BaseInfo_Svc.ModifyRequireTypeByNo(htRt);
        //}
        ///// <summary>
        ///// 获取对应代码的需求类别信息
        ///// </summary>
        ///// <param name="ReqTpNo">需求类别代码</param>
        ///// <returns></returns>
        //public Hashtable GetRequireTypeByNo(string ReqTpNo)
        //{
        //    return BaseInfo_Svc.GetRequireTypeByNo(ReqTpNo);
        //}
        ///// <summary>
        ///// 查询需求类别信息
        ///// </summary>
        ///// <param name="htRt">查询条件</param>
        ///// <returns></returns>
        //public DataTable GetRequireTypeByCdt(Hashtable htRt)
        //{
        //    return BaseInfo_Svc.GetRequireTypeByCdt(htRt);
        //}

        //#endregion

        //#region 处理状态

        ///// <summary>
        ///// 添加处理状态
        ///// </summary>
        ///// <param name="htDs">处理状态数据模型</param>
        ///// <returns></returns>
        //public int AddDealStatus(Hashtable htDs)
        //{
        //    return BaseInfo_Svc.AddDealStatus(htDs);
        //}
        ///// <summary>
        ///// 删除对应代码的处理状态
        ///// </summary>
        ///// <param name="DealStaNo">处理状态代码</param>
        ///// <returns></returns>
        //public int DelDealStatusByNo(string DealStaNo)
        //{
        //    return BaseInfo_Svc.DelDealStatusByNo(DealStaNo);
        //}
        ///// <summary>
        ///// 修改对应代码的处理状态信息
        ///// </summary>
        ///// <param name="htDs">处理状态数据模型</param>
        ///// <returns></returns>
        //public int ModifyDealStatusByNo(Hashtable htDs)
        //{
        //    return BaseInfo_Svc.ModifyDealStatusByNo(htDs);
        //}
        ///// <summary>
        ///// 获取对应代码的处理状态信息
        ///// </summary>
        ///// <param name="DealStaNo">处理状态代码</param>
        ///// <returns></returns>
        //public Hashtable GetDealStatusByNo(string DealStaNo)
        //{
        //    return BaseInfo_Svc.GetDealStatusByNo(DealStaNo);
        //}
        ///// <summary>
        ///// 查询需求处理状态
        ///// </summary>
        ///// <param name="htDs">查询条件</param>
        ///// <returns></returns>
        //public DataTable GetDealStatusByCdt(Hashtable htDs)
        //{
        //    return BaseInfo_Svc.GetDealStatusByCdt(htDs);
        //}

        //#endregion

        #region 审批流程

        /// <summary>
        /// 添加审批流程
        /// </summary>
        /// <param name="htAf">审批流程数据模型</param>
        /// <returns></returns>
        public int AddApprovalFlow(Hashtable htAf)
        {
            return BaseInfo_Svc.AddApprovalFlow(htAf);
        }
        /// <summary>
        /// 删除对应代码的审批流程
        /// </summary>
        /// <param name="AprvlNo">审批流程代码</param>
        /// <returns></returns>
        public int DelApprovalFlowByNo(string AprvlNo)
        {
            return BaseInfo_Svc.DelApprovalFlowByNo(AprvlNo);
        }
        /// <summary>
        /// 修改对应代码的审批流程
        /// </summary>
        /// <param name="htAf">审批流程数据模型</param>
        /// <returns></returns>
        public int ModifyApprovalFlowByNo(Hashtable htAf)
        {
            return BaseInfo_Svc.ModifyApprovalFlowByNo(htAf);
        }
        /// <summary>
        /// 通过客户代码获取审批流程
        /// </summary>
        /// <param name="AprvlNo">审批流程代码</param>
        /// <returns></returns>
        public Hashtable GetApprovalFlowByNo(string AprvlNo)
        {
            return BaseInfo_Svc.GetApprovalFlowByNo(AprvlNo);
        }
        /// <summary>
        /// 通过查询条件获取相关审批流程
        /// </summary>
        /// <param name="htAf">查询条件</param>
        /// <returns></returns>
        public DataTable GetApprovalFlowByCdt(Hashtable htAf)
        {
            return BaseInfo_Svc.GetApprovalFlowByCdt(htAf);
        }
        /// <summary>
        /// 查询表对应的字段
        /// </summary>
        /// <param name="tbName">表名</param>
        /// <returns></returns>
        public DataTable GetApprovalField(string tbName)
        {
            return BaseInfo_Svc.GetApprovalField(tbName);
        }

        #endregion

        #region 是否启用审批

        /// <summary>
        /// 添加是否启用审批
        /// </summary>
        /// <param name="htEa">是否启用审批数据模型</param>
        /// <returns></returns>
        public int AddEnableApproval(Hashtable htEa)
        {
            return BaseInfo_Svc.AddEnableApproval(htEa);
        }
       /// <summary>
        /// 删除是否启用审批
        /// </summary>
        /// <param name="ReceiptType">单据类型</param>
        /// <returns></returns>
        public int DelEnableApproval(string ReceiptType)
        {
            return BaseInfo_Svc.DelEnableApproval(ReceiptType);
        }
        /// <summary>
        /// 修改单据是否启用审批
        /// </summary>
        /// <param name="htEa">是否启用审批数据模型</param>
        /// <returns></returns>
        public int ModifyEnableApproval(Hashtable htEa)
        {
            return BaseInfo_Svc.ModifyEnableApproval(htEa);
        }
        /// <summary>
        /// 查询单据是否启用审批
        /// </summary>
        /// <param name="ReceiptType">单据类型</param>
        /// <returns></returns>
        public string GetEnableApproval(string ReceiptType)
        {
            return BaseInfo_Svc.GetEnableApproval(ReceiptType);
        }

        #endregion

        #region 审批

        /// <summary>
        /// 添加审批
        /// </summary>
        /// <param name="htAprvl">审批数据模型</param>
        /// <returns></returns>
        public int AddApproval(Hashtable htAprvl)
        {
            return BaseInfo_Svc.AddApproval(htAprvl);
        }
        /// <summary>
        /// 删除审批
        /// </summary>
        /// <param name="htAprvl">审批数据模型</param>
        /// <returns></returns>
        public int DelApproval(Hashtable htAprvl)
        {
            return BaseInfo_Svc.DelApproval(htAprvl);
        }
        /// <summary>
        /// 修改审批状态
        /// </summary>
        /// <param name="htAprvl">单据标志，单据号</param>
        /// <returns></returns>
        public int ModifyAprvlStatus(Hashtable htAprvl)
        {
            return BaseInfo_Svc.ModifyAprvlStatus(htAprvl);
        }
        /// <summary>
        /// 获取审批单据
        /// </summary>
        /// <param name="htAprvl">审批状态，单据号</param>
        /// <returns></returns>
        public DataTable GetApproverReceipt(Hashtable htAprvl)
        {
            return BaseInfo_Svc.GetApproverReceipt(htAprvl);
        }
        /// <summary>
        /// 检查审批是否完成
        /// </summary>
        /// <param name="htAprvl">审批状态，单据标志，单据号</param>
        /// <returns></returns>
        public Boolean ChkFinishAprvl(Hashtable htAprvl)
        {
            return BaseInfo_Svc.ChkFinishAprvl(htAprvl);
        }

        #endregion

        //#region 下拉选项

        ///// <summary>
        ///// 添加下拉选项
        ///// </summary>
        ///// <param name="htCbi">下拉选项数据模型</param>
        ///// <returns></returns>
        //public int AddCombItem(Hashtable htCbi)
        //{
        //    return BaseInfo_Svc.AddCombItem(htCbi);
        //}
        ///// <summary>
        ///// 删除对应代码的下拉选项
        ///// </summary>
        ///// <param name="id">下拉选项序号</param>
        ///// <returns></returns>
        //public int DelCombItemByNo(string id)
        //{
        //    return BaseInfo_Svc.DelCombItemByNo(id);
        //}
        ///// <summary>
        ///// 修改对应代码的下拉选项信息
        ///// </summary>
        ///// <param name="htCbi">下拉选项数据模型</param>
        ///// <returns></returns>
        //public int ModifyCombItemByNo(Hashtable htCbi)
        //{
        //    return BaseInfo_Svc.ModifyCombItemByNo(htCbi);
        //}
        ///// <summary>
        ///// 获取对应代码的下拉选项信息
        ///// </summary>
        ///// <param name="id">下拉选项序号</param>
        ///// <returns></returns>
        //public Hashtable GetCombItemByNo(string id)
        //{
        //    return BaseInfo_Svc.GetCombItemByNo(id);
        //}
        ///// <summary>
        ///// 查询下拉选项信息
        ///// </summary>
        ///// <param name="htCbi">查询条件</param>
        ///// <returns></returns>
        //public DataTable GetCombItemByCdt(Hashtable htCbi)
        //{
        //    return BaseInfo_Svc.GetCombItemByCdt(htCbi);
        //}

        //#endregion

        //#region 日志

        ///// <summary>
        ///// 新增日志
        ///// </summary>
        ///// <param name="alm">日志类数据模型</param>
        ///// <returns></returns>
        //public int AddActivityLog(ActivityLogModel alm)
        //{
        //    return BaseInfo_Svc.AddActivityLog(alm);
        //}
        ///// <summary>
        ///// 删除日志
        ///// </summary>
        ///// <param name="alm">日志类数据模型</param>
        ///// <returns></returns>
        //public int DelActivityLog(Hashtable HtAlm)
        //{
        //    return BaseInfo_Svc.DelActivityLog(HtAlm);
        //}
        ///// <summary>
        ///// 查询日志
        ///// </summary>
        ///// <param name="alm">日志类数据模型</param>
        ///// <returns></returns>
        //public DataTable GetActivityLog(Hashtable HtAlm)
        //{
        //    return BaseInfo_Svc.GetActivityLog(HtAlm);
        //}

        //#endregion
    }
}
